home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Best of www.BestZips.com (Collector's Edition)
/
Best of WWW.BESTZIPS.COM Collector's Edition (JCSM Shareware) (JCS Marketing).ISO
/
tutorial
/
adatu311.zip
/
ALTCHAR.C
< prev
next >
Wrap
C/C++ Source or Header
|
1996-01-10
|
881b
|
31 lines
/*
ALTCHAR.C Ver. 3.11 10-JAN-1996
SOFTWARE INNOVATIONS TECHNOLOGY http://members.aol.com/AdaTutor
1083 MANDARIN DR NE ftp://members.aol.com/AdaTutor
PALM BAY FL 32905-4706
johnherro@aol.com
(407) 951-0233 john.herro%374-38-2@satlink.oau.org
This file is for use with UNIX.ADA.
ALTCHAR.C is a simple solution to the single-character input problem.
It was sent to us by Mr. Richard Conn, 2700 Bowline Court, Maineville,
OH 45039. Software Innovations Technology is grateful to Mr. Conn for
permission to include ALTCHAR.C with ADA-TUTR.
For this to work, surround the ada_tutr invocation with
stty raw
ada_tutr
stty -raw
*/
#include <stdio.h>
char onechar()
{
char c;
c = getchar();
return (c);
}